﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using L = Science.Mathematics.LinearAlgebra;

namespace Strang3Ed.Chapter03.Section2
{
    public class Example04
    {
        public Example04()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
        public void Compute()
        {
            double[,] a = { { 1.0, 5.0, 7.0}, 
                            { 0.0, 0.0, 9.0} };

            L.Matrix C = new L.Matrix(a);

            L.FactorizationEAeqR obj = new L.FactorizationEAeqR(C);

            obj.Compute();

            result += obj.ReducedRowEchelonForm.ToString();
        }
    }
}
/*
1     5     8.88178419700125E-16     
0     0     1    
*/
